package linc.cool.framework.protocol.http;

import linc.cool.framework.Invocation;
import linc.cool.framework.Protocol;
import linc.cool.framework.URL;

/**
 * @author yqlin
 * @date 2022/3/11 6:10 下午
 * @description Http协议
 */
public class HttpProtocol implements Protocol {
    @Override
    public void start(URL url) {
        new HttpServer().start(url);
    }

    @Override
    public String send(URL url, Invocation invocation) {
        return HttpClient.send(url, invocation);
    }
}
